var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
var user = require('../../../services/user.js');
var app = getApp();

Page({
  data: {
    allCount:0,
    waterCountList:[]
  },
  onLoad: function (options) {
    let that = this;
    var data = new Object();
    util.request(api.GetWaterCount).then(function (res) {
      if (res.errno === 0) {
        that.setData({
          waterCountList: res.data.page.data,
          allCount: res.data.totalAccount
        });
      }
    });
  },
  onReady: function () {

  },
  onShow: function () {

  },
  onHide: function () {

  }
})